import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * Created by ZC_zc on 2016/11/3.
 */
public class test {
    public static void main(String[] args) {
        List<Object> list=new ArrayList<Object>();
        list.add("asdf ");
//        list.add(1);
        System.out.println(1);

        printList(list);
        printList1(list);

        List<Integer> li = new ArrayList<Integer>();

        li.add(new Integer(42));

        List<?> lu = li;

//        lu.add(new Integer(43));
    }
    static void printList(List l) {

            for (Object o : l)

                System.out.println(o);

    }

    static void printList1(List<Object> l) {

        for (Object o : l)

            System.out.println(o);

    }
}
